//
//  SEGMarketViewModel.h
//  Commom
//
//  Created by Clavis on 2019/7/29.
//

#import <Foundation/Foundation.h>

#if __has_include(<Commom/SEGText.h>)
#import <Commom/SEGText.h>
#else
#import "SEGText.h"
#endif

@interface SEGMarketViewModel : NSObject
@property (nonatomic, copy) NSString *mainTitle; // 标题文本
@property (nonatomic, copy) NSString *contentTitle; // 副文本
@property (nonatomic, copy) NSString *price; // 价格
@property (nonatomic, copy) NSString *image; // 图片
@property (nonatomic, assign) CGFloat widgetWidth; //空间总宽度

@end

@interface SEGMarketViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, strong,readonly)SEGMarketViewModel *data;
- (instancetype)initWithData:(SEGMarketViewModel *)data;
-(void)segMarketViewLayout;

@property (nonatomic, assign) CGFloat mainTitleLabelHeight;//mainTitleLabel 高度
@property (nonatomic, strong) SEGTextLayout *mainTitleLabelTextLayout;//mainTitleLabel 富文本布局

@property (nonatomic, assign) CGFloat contentTitleLabelHeight;//contentTitleLabel 高度
@property (nonatomic, strong) SEGTextLayout *contentTitleLabelTextLayout;//contentTitleLabel 富文本布局

@property (nonatomic, assign) CGFloat priceLabelHeight;//priceLabel 高度
@property (nonatomic, assign) CGFloat priceLabelWidth;//priceLabel 宽度
@property (nonatomic, strong) SEGTextLayout *priceLabelTextLayout;//priceLabel 富文本布局

@end
